/**
 * Haefko - your php5 framework
 *
 * @author      Jan Skrasek
 * @copyright   Copyright (c) 2007 - 2009, Jan Skrasek
 * @link        http://haefko.skrasek.com
 * @license     http://www.opensource.org/licenses/mit-license.html
 * @version     0.9 - $Id: datagrid.css 175 2009-07-25 19:26:58Z skrasek.jan $
 * @package     Haefko
 */


table.datagrid {
	border: 1px solid #bfbbaa;
}

table.datagrid td {
	border: 1px solid #b8b39d;
	padding: 4px 10px;
}

table.datagrid tr {
	background: white;
}

table.datagrid tbody tr.odd {
	background: #efede0;
}

table.datagrid tbody tr:hover td {
	background: #caef95;
}

table.datagrid thead th {
	background: #d5d1b2 url('imgs/dg-th.png');
	border: 1px solid #b8b39d;
	padding: 6px 10px;
}

table.datagrid thead th span.order {
	margin-left: 5px;
	color: #948c6d;
}

table.datagrid thead th a {
	padding-right: 21px;
	text-decoration: none;
}

table.datagrid thead a.asc, table.datagrid thead a:hover {
	background: url('imgs/dg-asc.png') no-repeat right center;
}

table.datagrid thead a.desc, table.datagrid thead a.asc:hover {
	background: url('imgs/dg-desc.png') no-repeat right center;
}

table.datagrid thead a.desc:hover {
	background: none;
}

table.datagrid tbody a.edit span, table.datagrid tbody a.delete span {
	display: none;
}

table.datagrid tbody a.edit, table.datagrid tbody a.delete {
	display: inline-block;
	height: 16px;
	width: 16px;
	margin: 3px 0 -3px;
}

table.datagrid tbody a.edit {
	background: url('imgs/dg-edit.png') no-repeat;
}

table.datagrid tbody a.delete {
	background: url('imgs/dg-delete.png') no-repeat;
}

table.datagrid tfoot td {
	background: #D5D1B2;
}

table.datagrid tfoot form {
	float: left;
	margin: 0 3px;
}

table.datagrid tfoot form .text {
	text-align: center;
	width: 55px;
}

table.datagrid tfoot a {
	text-decoration: none;
	overflow: hidden;
	float: left;
}

table.datagrid tfoot span {
	background: url('imgs/dg-controls.png');
	float: left;
	height: 16px;
	overflow: hidden;
	margin: 3px 2px 0 2px;
	text-indent: -9999px;
	width: 16px;
}

table.datagrid tfoot span.first { background-position: 0 0; }
table.datagrid tfoot span.first-off { background-position: 0 -16px; }
table.datagrid tfoot span.prev { background-position: -16px 0; }
table.datagrid tfoot span.prev-off { background-position: -16px -16px; }
table.datagrid tfoot span.next { background-position: -32px 0; }
table.datagrid tfoot span.next-off { background-position: -32px -16px; }
table.datagrid tfoot span.last { background-position: -48px 0; }
table.datagrid tfoot span.last-off { background-position: -48px -16px; }